@import '~less/mixin.less';

.content {
  padding: 14px 15px;
}

.agree {
  margin: 15px 0 0;
  font-size: 14px;
  color: #1B160C;

  > i {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 2px;
    border: 1px solid #C2C2C2;
    position: relative;
    margin-right: 6px;
    vertical-align: -1px;

    &:before {
      content: '';
      position: absolute;
      top: 2px;
      left: 2px;
      width: 6px;
      height: 4px;
      border-bottom: 1px solid #fff;
      border-left: 1px solid #fff;
      transform: rotate(-45deg);
    }
  }

  a {
    color: #36C2FF;
  }

  &-active > i {
    background: #36C2FF;
    border-color: #36C2FF;
  }
}

// 合同
.contract {
  display: flex;
  flex-direction: column;
  height: 100%;

  &-modal {
    top: 0;
  }

  &-body {
    flex-grow: 1;
    background: #F8F8F8;
    overflow: auto;
    padding: 15px;
    color: #4A4A4A;
    font-size: 15px;
    position: relative;

    .scrollable();
  }

  &-footer {
    flex-shrink: 0;
    padding: 14px 15px;
  }
}

.modal {
  &-header {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    min-width: 0;
    height: 52px;

    h2 {
      font-size: 18px;
      color: #000;
      font-weight: 500;
      margin: 0;

      .text-overflow();
    }
  }

  &-close {
    width: 24px;
    height: 24px;
    background: url('asset/img/modal-close.png') no-repeat center center;
    background-size: contain;
    flex-shrink: 0;
    margin-left: 20px;
  }
}

.bank {
  display: flex;
  flex-direction: column;
  height: 100%;

  &-modal {
    top: 210px;
  }
  &-body {
    position: relative;
    padding: 0 15px 15px;

    .scrollable();
  }
}

.bank-checkbox {
  display: flex;
  position: relative;
  height: 63px;
  align-items: center;
  justify-content: space-between;
  text-align: left;

  .hairline(top, #eee);

  &-before {
    flex-shrink: 0;
    margin-right: 12px;
  }

  &-content {
    flex-grow: 1;
    min-width: 0;

    h2 {
      line-height: 1.2;
      margin: 0 0 4px;
      font-size: 15px;
      font-weight: 500;
      color: #1B160C;
    }

    p {
      font-size: 13px;
      color: #9B9B9B;
      margin: 0;
    }
  }

  &-after {
    margin-left: 12px;
    flex-shrink: 0;
  }

  &:last-child {
    .hairline(bottom, #eee);
  }
}

.checkbox {
  width: 20px;
  height: 20px;
  position: relative;
  border-radius: 10px;
  background: #FFDB1B;

  &:before {
    content: '';
    position: absolute;
    width: 10px;
    height: 7px;
    top: 5px;
    left: 5px;
    border-bottom: 2px solid #1B160C;
    border-left: 2px solid #1B160C;
    transform: rotate(-45deg);
  }
}


.get-valid {
  color: #1B160C;
}


.result-modal {
  :global {
    .am-modal-content {
      padding-top: 34px;
      border-radius: 5px;
      box-shadow:0px 3px 13px 0px rgba(63,63,63,0.16);
    }

    .am-modal-content .am-modal-body {
      padding-left: 28px;
      padding-right: 28px;
      padding-bottom: 34px;
    }
  }

  p {
    margin: 14px 0 0;
    font-size: 16px;
    color: #000;
  }

  &-legend {
    width: 52px;
    height: 52px;
    // border-radius: 26px;
    // line-height: 52px;
    // text-align: center;
    display: block;
    margin: 0 auto;
    // color: #fff;
    // font-size: 30px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center center;

    &-success {
      // background-color: #59CB1B;
      background-image: url('asset/img/icon_succee.png');
    }
    &-fail {
      // background-color: #DE3A3A;
      background-image: url('asset/img/icon_error.png');
    }
  }
}

.money {
  font-size: 16px;
  color: #F32525;
  font-weight: 500;
}
